package com.nstar.model.orderexpress;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="item_spec_type"
 *     
*/
public class ItemSpecType implements Serializable {

    /** identifier field */
    private String itemSpecType;

    /** nullable persistent field */
    private String name;

    /** nullable persistent field */
    private String remarks;

    /** persistent field */
    private Set itemSpecs;

    /** full constructor */
    public ItemSpecType(String itemSpecType, String name, String remarks, Set itemSpecs) {
        this.itemSpecType = itemSpecType;
        this.name = name;
        this.remarks = remarks;
        this.itemSpecs = itemSpecs;
    }

    /** default constructor */
    public ItemSpecType() {
    }

    /** minimal constructor */
    public ItemSpecType(String itemSpecType, Set itemSpecs) {
        this.itemSpecType = itemSpecType;
        this.itemSpecs = itemSpecs;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ITEM_SPEC_TYPE_"
     *         
     */
    public String getItemSpecType() {
        return this.itemSpecType;
    }

    public void setItemSpecType(String itemSpecType) {
        this.itemSpecType = itemSpecType;
    }

    /** 
     *            @hibernate.property
     *             column="NAME"
     *             length="100"
     *         
     */
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /** 
     *            @hibernate.property
     *             column="REMARKS"
     *             length="200"
     *         
     */
    public String getRemarks() {
        return this.remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    /** 
     *            @hibernate.set
     *             lazy="true"
     *             inverse="true"
     *             cascade="none"
     *            @hibernate.collection-key
     *             column="ITEM_SPEC_TYPE_"
     *            @hibernate.collection-one-to-many
     *             class="com.nstar.model.orderexpress.ItemSpec"
     *         
     */
    public Set getItemSpecs() {
        return this.itemSpecs;
    }

    public void setItemSpecs(Set itemSpecs) {
        this.itemSpecs = itemSpecs;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("itemSpecType", getItemSpecType())
            .toString();
    }

}
